package pojo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Book implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String bname;
	@JsonFormat(pattern="yyyy-MM-dd")
	private Date pubDate;
	private String author;
	private double price;
	private boolean isNew;
	private String publisher;
	
	public Book() {
		super();
	}
	
	public Book(Integer id, String bname, Date pubDate, String author,
			double price, boolean isNew, String publisher) {
		super();
		this.id = id;
		this.bname = bname;
		this.pubDate = pubDate;
		this.author = author;
		this.price = price;
		this.isNew = isNew;
		this.publisher = publisher;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getBname() {
		return bname;
	}
	public void setBname(String bname) {
		this.bname = bname;
	}
	public Date getPubDate() {
		return pubDate;
	}
	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public boolean isNew() {
		return isNew;
	}
	public void setNew(boolean isNew) {
		this.isNew = isNew;
	}
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	
}
